package org.example.homeWork;

import java.util.Scanner;

/**
 * @AUTHOR 尹书岿
 * @DATE 2024/12/9 17:10
 * @DESCRIBE
 */
public class home03 {
    public static void main(String[] args) {
           //100311
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        char[] chars = str.toCharArray();
        int[] count = new int[10];
        for (int i = 0; i< chars.length; i++) {
            int num = chars[i] - '0';
            count[num]++;
        }
        for (int i =0 ; i< count.length;i++){
            if (count[i] > 0){
                System.out.println(i + ":" + count[i]);
            }
        }
    }
}
